package com.kmzx.one.project.others.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.List;

public class ProdCateInfo {

    protected Integer cateId;

    protected String cateName;

    protected String imgUrl;

    protected Integer motherId;

    protected int levels;

    protected int sorts;

    // 分类 或者 商品
    // 分类是-1
    // 商品是 0,1,2
    protected int kinds = -1;

    protected List<ProdCateInfo> childs;

    protected List<ProdOutInfo> prods;

    @JsonIgnore
    private int mark;


    public Integer getCateId() {
        return cateId;
    }

    public ProdCateInfo setCateId(Integer cateId) {
        this.cateId = cateId;
        return this;
    }

    public String getCateName() {
        return cateName;
    }

    public ProdCateInfo setCateName(String cateName) {
        this.cateName = cateName;
        return this;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public ProdCateInfo setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
        return this;
    }

    public Integer getMotherId() {
        return motherId;
    }

    public ProdCateInfo setMotherId(Integer motherId) {
        this.motherId = motherId;
        return this;
    }

    public int getLevels() {
        return levels;
    }

    public ProdCateInfo setLevels(int levels) {
        this.levels = levels;
        return this;
    }

    public int getSorts() {
        return sorts;
    }

    public ProdCateInfo setSorts(int sorts) {
        this.sorts = sorts;
        return this;
    }

    public List<ProdCateInfo> getChilds() {
        return childs;
    }

    public ProdCateInfo setChilds(List<ProdCateInfo> childs) {
        this.childs = childs;
        return this;
    }

    public int getKinds() {
        return kinds;
    }

    public ProdCateInfo setKinds(int kinds) {
        this.kinds = kinds;
        return this;
    }

    public List<ProdOutInfo> getProds() {
        return prods;
    }

    public ProdCateInfo setProds(List<ProdOutInfo> prods) {
        this.prods = prods;
        return this;
    }

    public int getMark() {
        return mark;
    }

    public ProdCateInfo setMark(int mark) {
        this.mark = mark;
        return this;
    }
}
